package day1.demo3;

import java.util.concurrent.Executors;
import java.util.concurrent.FutureTask;

public class Test {
    public static void main(String[] args)throws Exception {
        C c = new C();
        FutureTask task = new FutureTask(c);
        Thread t = new Thread(task);
        t.start();
        System.out.println(task.get());
        Executors.newCachedThreadPool();
    }
}
